//
//  PublicTool.h
//  FileTransfer
//
//  Created by HappyMilk 02 on 2017/3/20.
//  Copyright © 2017年 HappyMilk 02. All rights reserved.
//

#ifndef PublicTool_h
#define PublicTool_h

#define IPAD [UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad

#define __kwidth [UIScreen mainScreen].bounds.size.width
#define __kheight [UIScreen mainScreen].bounds.size.height

#define HEXCOLOR(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
#define RGBA(r,g,b,a) [UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:a]
#define RGB(r,g,b) RGBA(r,g,b,1.0f)


#endif /* PublicTool_h */
